Microblogging.OAuthPage = Ext.extend(Ext.Panel, {
			modal : true,
			fullscreen : true,
			floating : true,
			initComponent:function(){
				this.toolbar = new Ext.Toolbar({
					title:this.title,
					docked:'top',
					items:[{xtype: 'spacer'},
						{
							iconMask: true,
							ui: 'decline-round', 
							iconCls: 'delete',
							handler:function(){
								this.hide();
							},
							scope:this
						}
					]
				});
				this.dockedItems = this.toolbar;
				Microblogging.OAuthPage.superclass.initComponent.apply(this,arguments);
			},
			onRender:function(){
				Microblogging.OAuthPage.superclass.onRender.apply(this,arguments);
				this.iframe = {tag:'iframe',src:this.url||'about:blank',width:'100%',height:'100%',frameborder:'0'};
				this.iframe = Ext.DomHelper.append(this.body,this.iframe);
			},
			setUrl : function(url){
				this.iframe.src = url + '?_dc=' + Math.random();
			},
			destroy : function() {
				Microblogging.OAuthPage.superclass.destroy.apply(this, arguments);
				Ext.destroy(this.iframe);
			}
		});
Ext.reg('oauthpage',Microblogging.OAuthPage);